package com.zuipin.vo;

import java.util.List;

import com.zuipin.entity.product.EvaluationImg;
import com.zuipin.entity.product.OverallEvaluation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 评价信息VO
 *
 * @ClassName EvaluationVo
 * @author wangcongyi
 * @date 2017年4月25日 下午4:10:50
 */
@ApiModel(description = "评价信息VO")
public class EvaluationVo {
	
	private Long				id;					// ID
	private String				content;			// 评价内容
	private String				createTime;			// 评价时间
	private Long				memberId;			// 会员ID
	private String				nickName;			// 昵称
	private String				level;				// 等级
	private String				score;				// 评分
	private String				replyContent;		// 回复内容
	private Long				orderId;			// 订单ID
	private String				orderNo;			// 订单编号
	private Long				sysId;				// 系统ID
	private Short				state;				// 状态 0 待审核 1通过 2屏蔽
	private Boolean				delFlag;			// 删除标志 0未删除 1已删除
	private Short				isReply;			// 是否回复
	private Short				isTop;				// 是否置顶
	private String				replyPerson;		// 回复者
	private String				replyTime;			// 回复时间
	private String				proTitle;			// 商品标题
	private String				phone;				// 用户绑定手机号码
	private OverallEvaluation	overallEvaluation;	// 整体评价
	private List<EvaluationImg>	evaluationImgs;		// 评价图片列表信息
	
	@ApiModelProperty(value = "评价信息ID")
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@ApiModelProperty(value = "会员ID")
	public Long getMemberId() {
		return memberId;
	}
	
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	
	@ApiModelProperty(value = "评价内容")
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	@ApiModelProperty(value = "创建时间")
	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	@ApiModelProperty(value = "会员昵称")
	public String getNickName() {
		return nickName;
	}
	
	public void setNickName(String nickName) {
		String encryptNickName = null;
		if (null != nickName && !"".equals(nickName)) {
			if (nickName.length() <= 5) {
				encryptNickName = (nickName.substring(0, nickName.length() - 1) + "*");
			} else {
				encryptNickName = (nickName.substring(0, 3) + "**" + nickName.substring(nickName.length() - 2, nickName.length()));
			}
			this.nickName = encryptNickName;
		} else {
			this.nickName = "匿名";
		}
		
	}
	
	@ApiModelProperty(value = "评分")
	public String getScore() {
		return score;
	}
	
	public void setScore(String score) {
		this.score = score;
	}
	
	@ApiModelProperty(value = "会员等级")
	public String getLevel() {
		return level;
	}
	
	public void setLevel(String level) {
		this.level = level;
	}
	
	@ApiModelProperty(value = "评价图片集")
	public List<EvaluationImg> getEvaluationImgs() {
		return evaluationImgs;
	}
	
	public void setEvaluationImgs(List<EvaluationImg> evaluationImgs) {
		this.evaluationImgs = evaluationImgs;
	}
	
	@ApiModelProperty(value = "商家回复内容")
	public String getReplyContent() {
		return replyContent;
	}
	
	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}
	
	@ApiModelProperty(value = "是否回复")
	public Short getIsReply() {
		return isReply;
	}
	
	public void setIsReply(Short isReply) {
		this.isReply = isReply;
	}
	
	@ApiModelProperty(value = "是否置顶")
	public Short getIsTop() {
		return isTop;
	}
	
	public void setIsTop(Short isTop) {
		this.isTop = isTop;
	}
	
	@ApiModelProperty(value = "所属订单整体评价")
	public OverallEvaluation getOverallEvaluation() {
		return overallEvaluation;
	}
	
	public void setOverallEvaluation(OverallEvaluation overallEvaluation) {
		this.overallEvaluation = overallEvaluation;
	}
	
	@ApiModelProperty(value = "订单ID")
	public Long getOrderId() {
		return orderId;
	}
	
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	
	@ApiModelProperty(value = "系统ID")
	public Long getSysId() {
		return sysId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	@ApiModelProperty(value = "评价信息状态  0 待审核 1通过 2屏蔽")
	public Short getState() {
		return state;
	}
	
	public void setState(Short state) {
		this.state = state;
	}
	
	@ApiModelProperty(value = "删除标志 0 未删除 1已删除")
	public Boolean getDelFlag() {
		return delFlag;
	}
	
	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}
	
	@ApiModelProperty(value = "商品标题")
	public String getProTitle() {
		return proTitle;
	}
	
	public void setProTitle(String proTitle) {
		this.proTitle = proTitle;
	}
	
	@ApiModelProperty(value = "会员绑定手机号码")
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@ApiModelProperty(value = "回复者")
	public String getReplyPerson() {
		return replyPerson;
	}
	
	public void setReplyPerson(String replyPerson) {
		this.replyPerson = replyPerson;
	}
	
	@ApiModelProperty(value = "回复时间")
	public String getReplyTime() {
		return replyTime;
	}
	
	public void setReplyTime(String replyTime) {
		this.replyTime = replyTime;
	}
	
	@ApiModelProperty(value = "订单编号")
	public String getOrderNo() {
		return orderNo;
	}
	
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
}
